import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

// 首页
import Home from '@/views/Home.vue'
// 公司简介
import Profile from '@/views/Profile.vue'
// 产品中心
import ProductCenter from '@/views/ProductCenter.vue'
// 新闻资讯
import NewsCenter from '../views/NewsCenter.vue'
// 联系我们
import Contact from '../views/Contact.vue'


const routes = [
  // 首页
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  // 公司简介
  {
    path: '/profile',
    name: 'Profile',
    component: Profile
  },
  // 产品中心
  {
    path: '/product-center',
    name: 'ProductCenter',
    component: ProductCenter
  },
  // 新闻资讯
  {
    path: '/news-center',
    name: 'NewsCenter',
    component: NewsCenter
  },
  // 联系我们
  {
    path: '/contact',
    name: 'Contact',
    component: Contact
  }
]

const router = new VueRouter({
  routes
})

export default router
